﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WPS.Model
{
    [Table("AuthorizeInfo")]
    public class AuthorizeInfo
    {
        [StringLength(50)]
        public string ID { get; set; }

        [StringLength(50)]
        public string USER_ID { get; set; }

        [StringLength(50)]
        public string NICE_NAME { get; set; }

        [StringLength(500)]
        public string AVATAR { get; set; }

        [StringLength(50)]
        public string SEX { get; set; }

        public DateTime? CREATE_DATE { get; set; }

        [StringLength(50)]
        public string UNIOIN_ID { get; set; }
        
        [StringLength(50)]
        public string APP_ID { get; set; }

        [StringLength(50)]
        public string OPEN_ID { get; set; }

        [Column(TypeName = "timestamp")]
        [MaxLength(8)]
        [Timestamp]
        public byte[] TIME_STAMP { get; set; }
    }
}
